x86/pagewalk: Helpers for reserved bit handling
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 24 May 2016 14:46:01 +0000 (15:46 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 27 Mar 2017 10:49:25 +0000 (11:49 +0100)
commit16f2ad1fe96373c8e656365738bdae1598c40006
tree051457c8835a94c9fd98f822da235d9d3131deb0
parentc68a88583e588f6fb987f5dcb730817512277a6a
x86/pagewalk: Helpers for reserved bit handling

Some bits are unconditionally reserved in pagetable entries, or reserved
because of alignment restrictions.  Other bits are reserved because of control
register configuration.

Introduce helpers which take an individual vcpu and guest pagetable entry, and
calculates whether any reserved bits are set.

While here, add a couple of newlines to aid readability.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Tim Deegan <tim@xen.org>
xen/include/asm-x86/cpufeature.h
xen/include/asm-x86/guest_pt.h